
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台</title>
    <link rel="stylesheet" href="../../css/style.css">
    <script src="../../js/jquery-3.4.1.js"></script>

</head>
<body>
<!--背景-->
<div class="wel" id="background-3"></div>
<!--左右两边云-->
<div class="wel" id="box">
    <div class="box-1 lefp"></div>
    <div class="box-1">
        <div class="righp"></div>
    </div>
</div>
<!--荧光点点-->
<div class="wel" id="git"></div>
<!--登录注册表-->
<div class="wel" id="from">
    <div class="box-2 le-1">
        <form action="" method="post" id="formLogin">
            <div class="flrg">
                    <h3>登录</h3>
                <div class="a">
                    <input type="text" class="in-1" name="userName" placeholder="请输入账号">
                </div>
                <div class="a">
                    <input type="password" class="in-1" name="userPwd" placeholder="请输入密码">
                </div>
                <div class="a">
                    <button type="button" id="dyLogin">登录</button>
                </div>
                <div class="a">
                    <div class="hr"></div>
                </div>
            </div>

        </form>
    </div>

</div>
<script>
    $(function () {
        $("#dyLogin").on("click",function () {

            var url = "../../verycdUser/dyLogin";
            var data = $("#formLogin").serialize();
            $.post(url,data,function (obj) {
                if(obj.state==1){
                    location.href="../verycdfilms2.html";
                }else{
                    alert("用户名或密码错误!");
                }
            },"json")
        })
    })
</script>
</body>
</html>